package com.redrose.audioandvideo.bean;

import org.litepal.crud.DataSupport;

import java.io.Serializable;
import java.util.List;

/**
 * Desc:
 *
 * @author: RedRose
 * Date: 2019/4/1
 * Email: yinsxi@163.com
 */

public class Time extends DataSupport implements Serializable{
    private long classId;
    private int year;
    private int month;
    private int day;
    private List<Photo> photoList;

    public long getClassId() {
        return classId;
    }

    public void setClassId(long classId) {
        this.classId = classId;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public List<Photo> getPhotoList() {
        return DataSupport.where("classId = ?",String.valueOf(classId)).order("classId desc").find(Photo.class);
    }

    public void setPhotoList(List<Photo> photoList) {
        this.photoList = photoList;
    }
}
